﻿<phone:PhoneApplicationPage 
    x:Class="SampleStockWP.Views.AdvanceYChart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="SAMPLE STOCK" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Yahoo! Chart" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Height="30" HorizontalAlignment="Left" Name="textBlock1" Text="Based Symbol" VerticalAlignment="Top" Grid.ColumnSpan="2" Margin="12,13,0,0" />
            <toolkit:AutoCompleteBox HorizontalAlignment="Left" Margin="171,0,0,0" Name="autoCompleteSymbol" VerticalAlignment="Top" Width="236" Height="71" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,75,0,0" Name="textBlock2" Text="Size" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,136,0,0" Name="textBlock3" Text="Time Span" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,193,0,0" Name="textBlock4" Text="Type" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,260,0,0" Name="textBlock5" Text="Scale" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,319,0,0" Name="textBlock6" Text="Moving Average" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="12,382,0,0" Name="textBlock7" Text="Exponential MA" VerticalAlignment="Top" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,438,0,0" Name="textBlock8" Text="Compare with IDs" VerticalAlignment="Top" />
            <TextBox Height="67" HorizontalAlignment="Left" Margin="171,418,0,0" Name="textBox1" Text="" VerticalAlignment="Top" Width="236" />
            <Button Content="Check" Height="72" HorizontalAlignment="Left" Margin="164,506,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" />
            <Grid Height="43" HorizontalAlignment="Left" Margin="183,67,0,0" Name="grid1" VerticalAlignment="Top" Width="207">
                <ComboBox x:Name="cmbSize" Margin="0,8,-2,-8" Foreground="Black" SelectionChanged="cmbSize_SelectionChanged">
                </ComboBox>
            </Grid>
            <Grid Height="44" HorizontalAlignment="Left" Margin="183,128,0,0" Name="grid2" VerticalAlignment="Top" Width="209">
                <ComboBox x:Name="cmbTime" Margin="0,8,-2,-8" Foreground="Black" SelectionChanged="cmbTime_SelectionChanged">
                </ComboBox>
            </Grid>
            <Grid Height="46" HorizontalAlignment="Left" Margin="183,186,0,0" Name="grid3" VerticalAlignment="Top" Width="211">
                <ComboBox x:Name="cmbType" Margin="0,8,-2,-8" Foreground="Black" SelectionChanged="cmbType_SelectionChanged">
                </ComboBox>
            </Grid>
            <Grid Height="44" HorizontalAlignment="Left" Margin="183,252,0,0" Name="grid4" VerticalAlignment="Top" Width="209">
                <ComboBox x:Name="cmbScale" Margin="0,3,-2,-3" Foreground="Black" SelectionChanged="cmbScale_SelectionChanged">
                </ComboBox>
            </Grid>
            <Grid Height="46" HorizontalAlignment="Left" Margin="183,310,0,0" Name="grid5" VerticalAlignment="Top" Width="207">
                <ComboBox x:Name="cmbMA" Margin="0,3,-2,-3" Foreground="Black" SelectionChanged="cmbMA_SelectionChanged">
                </ComboBox>
            </Grid>
            <Grid Height="45" HorizontalAlignment="Left" Margin="183,366,0,0" Name="grid6" VerticalAlignment="Top" Width="207">
                <ComboBox x:Name="cmbEMA" Margin="0,5,-2,-5" Foreground="Black" SelectionChanged="cmbEMA_SelectionChanged">
                </ComboBox>
            </Grid>
        </Grid>
        <ProgressBar Height="4" HorizontalAlignment="Left" Margin="10,10,0,0" Name="progressBar1" VerticalAlignment="Top" Width="460" />
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
